package Struct;

import java.util.ArrayList;

public class Main1 {
    public static void main(String[] args) {
       ArrayList<String> namelist = new ArrayList<String>();
       namelist.add("Jack");
       namelist.add("Lisa");
       namelist.add("Bob");

       int cout= namelist.size();;
       System.out.println(cout);
       for (String x :namelist){
           System.out.print(x+" ");
       }
     /*   for (int i=0;i<cout;i++){
            String name = namelist.get(i);
            System.out.print(name+" ");
        }*/
        System.out.println();
        namelist.remove("Bob");
        cout = namelist.size();
        for (String x :namelist){
            System.out.print(x+" ");
        }
    }

}
